package com.smbms.mapper;

import com.smbms.pojo.Bill;
import com.smbms.pojo.User;

import java.sql.SQLException;
import java.util.List;

public interface UserMapper {
    //删除
    int del(Long id);

//修改
    int updateById(User user);


//增加
    int insert(User user);
//找所有
    List<User> findAll() throws SQLException;

    User findByIdCodeAndPwd(User user) throws SQLException;

    User findUserById(long id) throws SQLException;



}